<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="css/index.css"/>
		<link rel="stylesheet" type="text/css" href="css/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="css/classification.css"/>
		<title>团购分类</title>
	</head>
	<body>
		
		<div id="web">
			<!--头部-->
			<header class="clearfix">
				<!--logo-->
				<div class="back fl">
					<a href="index.html"><input type="button"  value="Back" /></a>
				</div>
				
				<div class="discover fl">分类</div>
				
				<div class="selettBar fr">
					<select name="">
						<option value="广州">广州市</option>
						<option value="深圳">深圳市</option>
					</select>
				</div>
			</header>
			
			<!--内容-->
			 
<div class="session">
	
	<!--导航图-->
	<div class="nav">
		<div class="foods fl">
			<img src="img/foods.png"/><br />美食
		</div>
		<div class="movie fl">
			<img src="img/movie.png"/><br />电影
		</div>
		<div class="sport fl">
			<img src="img/sport.png"/><br />运动
		</div>
		<div class="sing fl">
			<img src="img/music.png"/><br />唱歌
		</div>
		<div class="clear"></div>	
		</div>				
		
	<!--美食类-->
	<div class="delicious">
				
		<div class="deli-foods fl">
			<img src="img/titlefood.png"/>
			&nbsp;
			<a href="#">美食类</a>
		</div>
				
		<div class="more fr">
			<a href="#">更多</a>
			<img src="img/icon2.png">
			</div>
		<div class="clear"></div>
				
		<div class="delicious-photos">
			<img src="img/foods1.jpg"/>
			<img src="img/foods2.jpg"/>
			<img src="img/foods3.jpg"/>
			<img src="img/foods4.jpg"/>
		</div>
				
	</div>	
	
	<!--运动类-->
	<div class="sports">
				
		<div class="sports-class fl">
			<img src="img/titlesport.png"/>
			&nbsp;
			<a href="#">运动类</a>
		</div>
				
		<div class="more fr">
			<a href="#">更多</a>
			&nbsp;
			<img src="img/icon2.png">
		</div>
		<div class="clear"></div>
				
		<div class="sports-photos">
			<img src="img/sport1.jpg"/>
			<img src="img/sport2.jpg"/>
			<img src="img/sport3.jpg"/>
			<img src="img/sport4.jpg"/>
		</div>
	</div>	
	
	<!--电影类-->
	<div class="movies">
				
		<div class="movies-class fl">
			<div class="type_of_sport fl">
				<img src="img/type_of_movie.png"/>
			</div>
			<a href="#" class="fl">电影类</a>
					
	</div>
				
	<div class="more fr">
		<a href="#" class="fl">更多</a>
		&nbsp;
		<img src="img/icon2.png">
	</div>
	<div class="clear"></div>
				
	<div class="movies-photos">
		<img src="img/movie1.jpg"/>
		<img src="img/movie2.jpg"/>
		<img src="img/sport3.jpg"/>
		<img src="img/sport4.jpg"/>
	</div>
				
	</div>
	
		<!--唱歌类-->
	<div class="movies">
				
		<div class="movies-class fl">
			<div class="type_of_sport fl">
				<img src="img/type_of_movie.png"/>
			</div>
			<a href="#" class="fl">唱歌类</a>
					
	</div>
				
	<div class="more fr">
		<a href="#" class="fl">更多</a>
		&nbsp;
		<img src="img/icon2.png">
	</div>
	<div class="clear"></div>
				
	<div class="movies-photos">
		<img src="img/movie1.jpg"/>
		<img src="img/movie2.jpg"/>
		<img src="img/sport3.jpg"/>
		<img src="img/sport4.jpg"/>
	</div>
				
	</div>
</div>	
			<!--底部-->
			<footer>
				<ul class="clearfix">
					<li>
						<a href="index.html">
							<i class="iconfont icon-path"></i>
							<p>首页</p>
						</a>
					</li>
					
					<li>
						<a href="classification.html">
							<i class="iconfont icon-classify active"></i>
							<p>分类</p>
						</a>
					</li>
					
					<li>
						<a href="found.html">
							<i class="iconfont icon-zhinanzhen"></i>
							<p>发现</p>
						</a>
					</li>
					
					<li>
						<a href="my.html">
							<i class="iconfont icon-user"></i>
							<p>我的</p>
						</a>
					</li>
				</ul>
			</footer>
		</div>
		
		
		
		
		
		   <script>
    
        
		document.body.style.height = window.innerHeight + "px";
		
        /*动态改变根元素字体大小*/
        function recalc() {
            var clientWidth = document.documentElement.clientWidth;
            if(!clientWidth) return;
            document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
                                        // 字体大小   = 1个rem单位表示多少个像素（设备的宽度   /设计宽度）
        }

        function initRecalc() {
            recalc();
            var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
            if(!document.addEventListener) return;
            window.addEventListener(resizeEvt, recalc, false);
            document.addEventListener('DOMContentLoaded', recalc, false);
        }
        initRecalc();
    
    
    
    </script>
	</body>
</html>
